﻿@model Annual_faculty_promotions.Core.Domain.EducationalResearch
<table id="dgListReaserchAttach"></table>
<script>
    $('#dgListReaserchAttach').datagrid(
       {
           loadMsg: 'شکیبا باشید...',
           rownumbers: true,
           height: '480',
           singleSelect: 'true',
           sortName: 'Name',
           sortOrder: 'asc',
           pagePosition: 'bottom',
           striped: 'true',
           fitColumns: 'true',
           pageSize: 10,
           url: '@Url.Action("GetReaserchAttach", "Request", new { area = "UserArea" })',
           queryParams:{researchId:'@Model.Id'},
           columns: [
           [
           { field: 'FileName', title: 'نام', width: 300 },
           {
               field: 'Action',
               title: 'عملیات',
               width: 100,
               formatter: function (value, rows, index) {
                   return '<a reaserchid=' + rows.Id + ' href="javascript:void(0)" onclick="destroyCollege(this)"><img class="delete"  src="/content/jquery-easyui-1.4.2/themes/icons/cancel.png"/></a>&nbsp&nbsp&nbsp';
               }
           }
           ]
           ]
       });
</script>
